# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-setproctitle
_pkgname=setproctitle
pkgver=1.2.2
pkgrel=1
pkgdesc="A Python module to customize the process title"
url="https://github.com/dvarrazzo/py-setproctitle"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="musl-dev py3-setuptools python3-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/dvarrazzo/py-setproctitle/archive/version-$pkgver.tar.gz"
builddir="$srcdir/py-$_pkgname-version-$pkgver"

replaces=py-setproctitle # Backwards compatibility
provides=py-setproctitle=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
22cdb057b81bee5eabadac59113aa71949365e7fe9c62be24df80c9ba1723223af91d037a149b11ce43f802cb881642e602bd27df08b707b12d19b471233fa7b  setproctitle-1.2.2.tar.gz
"
